package com.ysh.one_to_many;

import com.ysh.domain.Student;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface StudentMapper {
    // 根据cid查询学生表
    @Select("select * from student where cid=#{id}")
    public abstract List<Student> selectById(Integer id);
}
